package com.android.jixin.channel.ui.fragment;

import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.android.jixin.channel.R;
import com.android.jixin.channel.base.BaseFragment;
import com.android.jixin.channel.presenter.impl.HomePresenterImpl;
import com.android.jixin.channel.view.IHomeView;


public class HomeFragment extends BaseFragment<HomePresenterImpl> implements IHomeView {

    // TODO: Rename and change types and number of parameters
    public static HomeFragment newInstance() {
        HomeFragment fragment = new HomeFragment();
        Bundle args = new Bundle();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    protected void initView() {
        mPresenter.getData();
    }

    @Override
    protected void initInjector() {
        getFragmentComponent().inject(this);
    }

    @Override
    protected int getContentViewLayoutID() {
        return R.layout.fragment_home;
    }
}
